package com.xx.pmis.model;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @class 角色实体类 <br>
 * 
 * @editor jack.shi @Date 2011-9-21 下午02:32:26 <br>
 * @version jdk_1.5.0
 */
public class Role extends AbstractEntity implements Comparable<Entity> {
	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 1L;

	private String roleID; // 用户ID
	private String roleName; // 用户名称
	private String roleCode; // 用户代码，以10开头，共六位
	private String roleRegDate; // 注册日期
	private String roleModDate; // 修改日期
	private String roleState;
	private String roleDesc;
	private String roleDelFlag;

	private Set<User> user = new HashSet<User>(0);
	private List<Function> function = new ArrayList<Function>(0);
	// 是否被选中
	private String selected = "";

	public Role() {
		super();
	}

	public Role(String roleID, String roleName, String roleCode, String roleRegDate, String roleModDate,
			String roleState, String roleDesc, String roleDelFlag, Set<User> user) {
		super();
		this.roleID = roleID;
		this.roleName = roleName;
		this.roleCode = roleCode;
		this.roleRegDate = roleRegDate;
		this.roleModDate = roleModDate;
		this.roleState = roleState;
		this.roleDesc = roleDesc;
		this.roleDelFlag = roleDelFlag;
		this.user = user;
	}

	public String getRoleID() {
		return roleID;
	}

	public void setRoleID(String roleID) {
		this.roleID = roleID;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleRegDate() {
		return roleRegDate;
	}

	public void setRoleRegDate(String roleRegDate) {
		this.roleRegDate = roleRegDate;
	}

	public String getRoleModDate() {
		return roleModDate;
	}

	public void setRoleModDate(String roleModDate) {
		this.roleModDate = roleModDate;
	}

	public String getRoleState() {
		return roleState;
	}

	public void setRoleState(String roleState) {
		this.roleState = roleState;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public String getRoleDelFlag() {
		return roleDelFlag;
	}

	public void setRoleDelFlag(String roleDelFlag) {
		this.roleDelFlag = roleDelFlag;
	}

	public Set<User> getUser() {
		return user;
	}

	public void setUser(Set<User> user) {
		this.user = user;
	}

	public List<Function> getFunction() {
		return function;
	}

	public void setFunction(List<Function> function) {
		this.function = function;
	}

	public String getSelected() {
		return selected;
	}

	public void setSelected(String selected) {
		this.selected = selected;
	}

}
